<?php
/**
 * get
 */

use app\common\exception\ExceptionEmun;
use app\common\exception\SystemException;
use think\facade\Route;

/**
 * index通用规则
 */
Route::rule(':action/:controller', ':action/:controller')
     ->pattern(['controller' => '\D+', 'action' => '\D+']);

//resource
Route::resource('member', 'member');
Route::resource('plan', 'plan');

//非法路由地址
Route::miss(function () {
    ExceptionEmun::throwException(SystemException::INVALID_ROUTE);
});

